#ifndef EDGE_H
#define EDGE_H

#include"Vertex.h"

class Edge:public QObject,public QGraphicsLineItem
{
    Q_OBJECT
private:

public:
    explicit Edge(Vertex* begin,Vertex* end,QObject* parent=nullptr);
    QRectF boundingRect() const override;
    Vertex* start;
    Vertex* end;
    qreal Z=0;
    qreal U=0;
    qreal I=0;
    QGraphicsSimpleTextItem* tag;
    QString text;
    QFont TagFont = QFont("Corbel", 13, QFont::Normal, true);
    QColor color;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
};

#endif // EDGE_H
